package com.linkgie.galaxyframework.httpproxy.converters;

import com.linkgie.galaxyframework.httpproxy.ResponseHandler;
import com.linkgie.galaxyframework.httpproxy.ServiceInvocationContext;
import com.linkgie.galaxyframework.httpproxy.ServiceRequest;
import com.linkgie.galaxyframework.httpproxy.ServiceResponse;

public class InputStreamResponseHandler implements ResponseHandler {

    public static final InputStreamResponseHandler INSTANCE = new InputStreamResponseHandler();

    private InputStreamResponseHandler() {
    }

    @Override
    public Object handleResponse(ServiceRequest request, ServiceResponse response,
            ServiceInvocationContext invocationContext) throws Exception {
        return response.getInputStream();
    }

}
